﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HappyFrogXna.ScreenSystem;
using Microsoft.Xna.Framework;

namespace HappyFrogXna.Miscellaneous
{
    public struct Size
    {
        public Size(float w, float h)
        {
            _w = w;
            _h = h;
        }

        float _w;
        float _h;
        public float Width
        {
            get { return _w; }
            set { _w = value; }
        }
        public float Height 
        {
            get { return _h; }
            set { _h = value; }
        }

        public Vector2 ToVector2()
        {
            return new Vector2(_w, _h);
        }
    };

    /// <summary>
    /// a singleton class contains information refer to basic game screen
    /// </summary>
    static class ScreenInfo
    {
        //private static Size _viewPortSize = new Size(ConvertUnits.ToSimUnits(_screenSize.Width),
        //        ConvertUnits.ToSimUnits(_screenSize.Height));
        //public static Size ViewPortSize { get { return _viewPortSize; } }

        private static Size _screenSize = new Size(800, 480);
        public static Size ScreenSize { get { return _screenSize; } }
    }
}
